<meta charset="utf-8">

<!doctype html>
<html lang="en" class="fullscreen-bg">

<head>
	<title>Login | Klorofil - Free Bootstrap Dashboard Template</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<!-- VENDOR CSS -->
	<link rel="stylesheet" href="resources/admin/assets/css/bootstrap.min.css">
	<link rel="stylesheet" href="resources/admin/assets/vendor/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="resources/admin/assets/vendor/linearicons/style.css">
	<!-- MAIN CSS -->
	<link rel="stylesheet" href="resources/admin/assets/css/main.css">
	<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
	<link rel="stylesheet" href="resources/admin/assets/css/demo.css">
	<!-- GOOGLE FONTS -->
	
	<!-- ICONS -->
	<link rel="apple-touch-icon" sizes="76x76" href="resources/admin/assets/img/apple-icon.png">
	<link rel="icon" type="image/png" sizes="96x96" href="resources/admin/assets/img/favicon.png">
</head>

<body>
	<!-- WRAPPER -->
	<div id="wrapper">
		<div class="vertical-align-wrap">
			<div class="vertical-align-middle">
				<div class="auth-box ">
					<div class="left">
						<div class="content">
							<div class="header">
								<div class="logo text-center"><img src="resources/admin/assets/img/logo-dark.png" alt="Klorofil Logo"></div>
								<p class="lead">Login to your account</p>
							</div>
							<form class="form-auth-small" action="" method="post">
								<div class="form-group">
									<label for="signin-email" class="control-label sr-only"></label>
									<input type="text" class="form-control" id="signin-email" 
					value="<?php echo (!empty($_COOKIE['username']))?$_COOKIE['username']:'';  ?>" name="username" placeholder="用户名">
								</div>
								<div class="form-group">
									<label for="signin-password" class="control-label sr-only"></label>
									<input type="password" class="form-control" id="signin-password" 
						value="<?php echo (!empty($_COOKIE['password']))?$_COOKIE['password']:'';  ?>" name="password" placeholder="密码">
								</div>
								<div class="form-group">
									<label for="signin-password" class="control-label sr-only"></label>
									<input type="text" class="form-control" id="signin-password" 
						 name="code" placeholder="验证码">
						 			<img id="img" style="margin-right:350px;" src="index.php?c=admin&a=code&admin=1">
								</div>
								<div class="form-group clearfix">
									<label id="checkbox" class="fancy-checkbox element-left">
										<input type="checkbox" id="check" name="check" value="1" <?php  echo (!empty($_COOKIE['username']))?"checked":'';
										?>>
										<span>记住我们</span>
									</label>
									<label class="fancy-checkbox element-left">
										<input type="checkbox" id="auto" name="auto" value="1" <?php  echo (!empty($_COOKIE['auto_login']))?"checked":'';
										?> >
										<span>自动登录</span>
									</label>
								</div>
								<button type="submit" class="btn btn-primary btn-lg btn-block">登录</button>
								<div class="bottom">
									<span class="helper-text"><i class="fa fa-lock"></i> <a href="#">Forgot password?</a></span>
								</div>
							</form>
						</div>
					</div>
					<div class="right">
						<div class="overlay"></div>
						<div class="content text">
							<h1 class="heading">Free Bootstrap dashboard template</h1>
							<p>by The Develovers</p>
						</div>
					</div>
					<div class="clearfix"></div>
				</div>
			</div>
		</div>
	</div>
	<!-- END WRAPPER -->
</body>

</html>



<script src="resources/admin/assets/vendor/jquery/jquery.min.js"></script>
<script type="text/javascript">
$(function () {


	$('#img').click(function(){
	
		var src=$(this).attr('src');

			src=src+'&'+Math.random()*10;
			$(this).attr('src',src);
	});
	$('#auto').click(function() {

		if ($(this).is(':checked')) {
			$('#check').parent().attr('id');
			$(':checkbox[name=check]').prop('checked',true);

		};
	});
	
});


</script>
